package com.hanbang.maige.mode.javabean.login;

import android.os.Parcel;
import android.os.Parcelable;

import com.hanbang.maige.utils.other.StringUtils;

import java.util.List;

/**
 * 作者　　: 李坤
 * 创建时间:2016/10/25　14:50
 * 邮箱　　：496546144@qq.com
 * <p>
 * 功能介绍：
 */

public class BiaoQianData {


    /**
     * hyID : 1
     * hyTypeName : IT|通信|电子|互联网
     * childLei : [{"ID":3,"hyValueName":"互联网/电子商务","OrderIndex":1},{"ID":4,"hyValueName":"计算机软件","OrderIndex":2},{"ID":1,"hyValueName":"IT服务(系统/数据/维护)","OrderIndex":3},{"ID":2,"hyValueName":"电子技术/半导体/集成电路","OrderIndex":4},{"ID":5,"hyValueName":"计算机硬件","OrderIndex":5},{"ID":6,"hyValueName":"通信/电信/网络设备","OrderIndex":6},{"ID":7,"hyValueName":"通信/电信运营、增值服务","OrderIndex":7},{"ID":8,"hyValueName":"网络游戏","OrderIndex":8}]
     */

    private int hyID;
    private String hyTypeName;
    /**
     * ID : 3
     * hyValueName : 互联网/电子商务
     * OrderIndex : 1
     */

    private List<ChildLeiBean> childLei;

    public int getHyID() {
        return hyID;
    }

    public void setHyID(int hyID) {
        this.hyID = hyID;
    }

    public String getHyTypeName() {
        return StringUtils.dataFilter(hyTypeName);
    }

    public void setHyTypeName(String hyTypeName) {
        this.hyTypeName = hyTypeName;
    }

    public List<ChildLeiBean> getChildLei() {
        return childLei;
    }

    public void setChildLei(List<ChildLeiBean> childLei) {
        this.childLei = childLei;
    }

    public static class ChildLeiBean implements Parcelable {
        private int ID;
        private String hyValueName;
        private int OrderIndex;

        public int getID() {
            return ID;
        }

        public void setID(int ID) {
            this.ID = ID;
        }

        public String getHyValueName() {
            return StringUtils.dataFilter(hyValueName);
        }

        public void setHyValueName(String hyValueName) {
            this.hyValueName = hyValueName;
        }

        public int getOrderIndex() {
            return OrderIndex;
        }

        public void setOrderIndex(int OrderIndex) {
            this.OrderIndex = OrderIndex;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.ID);
            dest.writeString(this.hyValueName);
            dest.writeInt(this.OrderIndex);
        }

        public ChildLeiBean() {
        }

        protected ChildLeiBean(Parcel in) {
            this.ID = in.readInt();
            this.hyValueName = in.readString();
            this.OrderIndex = in.readInt();
        }

        public static final Parcelable.Creator<ChildLeiBean> CREATOR = new Parcelable.Creator<ChildLeiBean>() {
            @Override
            public ChildLeiBean createFromParcel(Parcel source) {
                return new ChildLeiBean(source);
            }

            @Override
            public ChildLeiBean[] newArray(int size) {
                return new ChildLeiBean[size];
            }
        };
    }
}
